package com.itany.vo;


import java.io.Serializable;

public class UeditorResult implements Serializable {

        private String state;

        private String url;

        private String title;

        private String original;


        public static UeditorResult success(String url,String title){
                 return new UeditorResult("SUCCESS",url,title,title);
        }

        public static UeditorResult fail(String message,String url,String title){
            return new UeditorResult(message,url,title,title);
        }


    public UeditorResult(String state, String url, String title, String original) {
        this.state = state;
        this.url = url;
        this.title = title;
        this.original = original;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOriginal() {
        return original;
    }

    public void setOriginal(String original) {
        this.original = original;
    }
}
